﻿@{ Layout = null;

}
@inject IDbTemplateService mService
@model DbTemplateEntity

<div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
    <h4 class="modal-title">服务器设置</h4>
</div>
<div class="modal-body">

    <div class="ibox-content text-center p-md p-s-md">
        <form id="dynamic-template-form" asp-action="Edit" method="post" class="form-horizontal" role="form">
            <div asp-validation-summary="@ValidationSummary.All" class="text-danger"></div>
            <input type="hidden" asp-for="TemplateId" />
            <input type="hidden" asp-for="ParentId" />
            <div class="form-group">
                <label asp-for="TemplateName" class="col-md-2 control-label text-right"> 模板名称</label>
                <div class="col-md-10  text-left">
                    <div class="input-group m-b">
                        <span class="input-group-addon">*</span>
                        <input asp-for="TemplateName" class="form-control" validate="{required:true ,maxlength:50   }" />
                    </div>
                    <span asp-validation-for="TemplateName" class="text-danger"></span>
                </div>
            </div>

            <div class="form-group">
                <label asp-for="Remark" class="col-md-2 control-label text-right">描述</label>
                <div class="col-md-10  text-left">
                    <textarea asp-for="Remark" class="form-control" validate="{required:false ,maxlength:200   }" rows="2"></textarea>
                  
                    <span asp-validation-for="Remark" class="text-danger"></span>
                </div>
            </div>
            <div class="form-group">
                <label asp-for="DataTContent" class="col-md-2 control-label text-right">模板</label>
                <div class="col-md-10  text-left">

                    <textarea asp-for="DataTContent" class="form-control codemirror" validate="{required:false   }" rows="20"></textarea>
                    <span asp-validation-for="DataTContent" class="text-danger"></span>
                </div>
            </div>

        </form>
    </div>
</div>

<div class="modal-footer">

</div>
